package com.kgc.entity;

/**
 * <h3>项目名称:demo03050</h3>
 * <p>本API描述:文件对象</p>
 * <p>@author : AliyZhang</p>
 * <p>@date : 2021-03-08 13:16</p>
 **/
public class FileDto {
    private String name;
    private double size;
    private String sizeInfo;

    public String getSizeInfo() {
        return sizeInfo;
    }

    public FileDto(String name, double size) {
        this.name = name;
        this.size = size;
        this.sizeInfo=String.format("%.2f", size);
    }

    public FileDto() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSize() {
        return size;
    }

    public void setSize(double size) {
        this.size = size;
    }
}
